package main.java.com.service.impl;

import main.java.com.dao.LoginDao;
import main.java.com.dao.impl.LoginDaoImpl;
import main.java.com.entity.Employee;
import main.java.com.service.LoginService;

import java.util.List;

public class LoginServiceImpl implements LoginService {

    LoginDao loginDao = new LoginDaoImpl();

    /**
     * 登录
     * @param name 账号
     * @param password 密码
     * @return
     */
    @Override
    public List<Employee> login(String name, String password) {
        List<Employee> list = loginDao.login(name, password);
        return list;
    }

}
